package com.vipbbo.spring.bean;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;


public class IgnoreAutowiringProcessor implements BeanFactoryPostProcessor {
	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		beanFactory.ignoreDependencyInterface(IgnoreInterface.class);
		IgnoreInterface bean = beanFactory.getBean(IgnoreInterface.class);
		System.out.println("后置处理。。。。。");
	}
}
